package com.kehongborui.fliggy.enums;

/**
 * @author zhang peng yang ming
 * @CopyRight (C) http://www.csdn.com
 * @brief
 * @email 122162005@qq.com
 * @date 2018-08-23
 */
public enum OrderStatus {
    NEW(0, "新订单"),
    FINISHED(1, "完结"),
    CANCEL(2, "已取消"),
    ;
    OrderStatus(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private String desc;
    private Integer code;

    public String getDesc() {
        return desc;
    }

    public Byte getCode() {
        return code.byteValue();
    }
}
